/** When your routing table is too long, you can split it into small modules**/

import Layout from '@/layout/index.vue'

const orderRouter = [
  {
    path: '/order',
    component: Layout,
    name: 'order',
    meta: {
      title: '工单管理',
      icon: 'Tickets',
    },
    children: [
      {
        path: 'list',
        component: () => import('@/views/order/list/index.vue'),
        name: 'Orderlist',
        meta: { title: '工单列表', keepAlive: true , icon: 'Tickets',},
      },
      {
        path: 'parts',
        component: () => import('@/views/order/parts/index.vue'),
        name: 'Orderparts',
        meta: { title: '配件管理', keepAlive: true },
        hidden: true,
      },
      {
        path: 'ocost',
        component: () => import('@/views/order/ocost/index.vue'),
        name: 'Orderocost',
        meta: { title: '服务项目', keepAlive: true },
        hidden: true,
      },
      //跳转页面
      {
        path: 'odetail/:id',
        component: () => import('@/views/order/list/odetail/index.vue'),
        name: 'Odetail',
        meta: { title: '工单详情', keepAlive: true },
        hidden: true,
      },
      {
        path: 'orderExcelImport',
        component: () => import('@/views/excel/index.vue'),
        name: 'orderExcelImport',
        meta: { title: '工单资料导入', keepAlive: true },
        hidden: true,
      },
      {
        path: 'preturn',
        component: () => import('@/views/order/parts/preturn/index.vue'),
        name: 'Preturn',
        meta: { title: '旧件退回', keepAlive: true },
        hidden: true,
      },
      {
        path: 'archived',
        component: () => import('@/views/order/archived/index.vue'),
        name: 'archived',
        meta: { title: '归档列表', keepAlive: true },
        hidden: true,
      },
      {
        path: 'settlement',
        component: () => import('@/views/order/settlement/index.vue'),
        name: 'settlement',
        meta: { title: '结算列表', keepAlive: true },
        hidden: true,
      },
    ],
  },
]

export default orderRouter
